Copies the entire collection into an array starting at the specified index. Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementPackSubElementCollection(Of T)
Dim array As T()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)

Syntax

Visual Basic
Public Sub CopyTo ( _
		array As T(), _
		arrayIndex As Integer _
)
C#
public void CopyTo (
		T[] array,
		int arrayIndex
)
C++
public:
virtual void CopyTo (
		array<T>^ array, 
		int arrayIndex
) sealed
J#
public final void CopyTo (
		T[] array, 
		int arrayIndex
)
JScript
public final function CopyTo (
		array : T[], 
		arrayIndex : int
)

Parameters

array

The array to copy the collection into.

arrayIndex

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also